package com.lechuang.user.feign;

import com.lechuang.common.result.Result;
import com.lechuang.user.dto.UpdateUserDto;
import com.lechuang.user.dto.UserQueryDto;
import com.lechuang.user.vo.UserDetailVo;
import com.lechuang.user.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *
 * </p>
 *
 * @author apple
 * @since 2024-6-22
 */
@FeignClient(value = "mall-user-${spring.profiles.active}")
public interface UserFeign {

    @PostMapping("/user/selectById")
    Result<UserVo> selectById(@RequestBody UserQueryDto userQueryDto);

    @PostMapping("/userManage/queryUserDetailByPhone")
    Result<UserDetailVo> queryUserDetailByPhone(@RequestBody String phone);

    @PostMapping("/userManage/updateUser")
    Result updateUser(@RequestBody UpdateUserDto  updateUserDto);

}
